@extends('admin.layouts.app')
@section('title','后台管理欢迎页面')
@section('headerCss')
    @parent
    <link href="{{ asset('admin/assets/css/codemirror.css') }}" rel="stylesheet">
    <!--[if !IE]> -->
    <script src="{{ asset('admin/assets/js/jquery.min.js') }}"></script>
    <!-- <![endif]-->
@stop
@section('headerJs')
    <script src="{{ asset('admin/assets/dist/echarts.js') }}"></script>
    <script src="{{ asset('admin/assets/js/bootstrap.min.js') }}"></script>
@stop
@section('content')
    <div class="page-content clearfix">
        <div class="alert alert-block alert-success">
            <button type="button" class="close" data-dismiss="alert"><i class="icon-remove"></i></button>
            <i class="icon-ok green"></i>欢迎使用<strong class="green">DD跑题快服务后台管理系统<small>(v1.0)</small></strong>,你本次登陆时间为 {{ $user->last_login_at }}，登陆IP:{{ $user->ip }}
        </div>
        <div class="state-overview clearfix">
            <div class="col-lg-3 col-sm-5">
                <section class="panel">
                    <a href="#" title="商城会员">
                        <div class="symbol terques">
                            <i class="icon-user"></i>
                        </div>
                        <div class="value">
                            <h1>{{ $regNum }}</h1>
                            <p>注册用户</p>
                        </div>
                    </a>
                </section>
            </div>
            <div class="col-lg-2 col-sm-5">
                <section class="panel">
                    <div class="symbol red">
                        <i class="icon-tags"></i>
                    </div>
                    <div class="value">
                        <h1>{{ $subUserNum }}</h1>
                        <p>公众号关注人数</p>
                    </div>
                </section>
            </div>
            <div class="col-lg-2 col-sm-5">
                <section class="panel">
                    <div class="symbol red">
                        <i class="icon-tags"></i>
                    </div>
                    <div class="value">
                        <h1>{{ $unSubNum }}</h1>
                        <p>公众号取消关注人数</p>
                    </div>
                </section>
            </div>
            <div class="col-lg-2 col-sm-5">
                <section class="panel">
                    <div class="symbol yellow">
                        <i class="icon-shopping-cart"></i>
                    </div>
                    <div class="value">
                        <h1>345</h1>
                        <p>商城订单</p>
                    </div>
                </section>
            </div>
            <div class="col-lg-2 col-sm-5">
                <section class="panel">
                    <div class="symbol blue">
                        <i class="icon-bar-chart"></i>
                    </div>
                    <div class="value">
                        <h1>￥34,500</h1>
                        <p>交易记录</p>
                    </div>
                </section>
            </div>
        </div>
        <!--实时交易记录-->
        <div class="clearfix">
            <div class="Order_Statistics ">
                <div class="title_name">订单统计信息</div>
                <table class="table table-bordered">
                    <tbody>
                    <tr><td class="name">待接单订单：</td><td class="munber"><a href="#">0</a>&nbsp;个</td></tr>
                    <tr><td class="name">正在进行中订单：</td><td class="munber"><a href="#">10</a>&nbsp;个</td></tr>
                    <tr><td class="name">待支付订单：</td><td class="munber"><a href="#">13</a>&nbsp;个</td></tr>
                    <tr><td class="name">已成交订单数：</td><td class="munber"><a href="#">26</a>&nbsp;个</td></tr>
                    <tr><td class="name">已退款的订单：</td><td class="munber"><a href="#">26</a>&nbsp;个</td></tr>
                    </tbody>
                </table>
            </div>
            <div class="Order_Statistics">
                <div class="title_name">商品统计信息</div>
                <table class="table table-bordered">
                    <tbody>
                    <tr><td class="name">商品总数：</td><td class="munber"><a href="#">340</a>&nbsp;个</td></tr>
                    <tr><td class="name">回收站商品：</td><td class="munber"><a href="#">10</a>&nbsp;个</td></tr>
                    <tr><td class="name">上架商品：</td><td class="munber"><a href="#">13</a>&nbsp;个</td></tr>
                    <tr><td class="name">下架商品：</td><td class="munber"><a href="#">26</a>&nbsp;个</td></tr>
                    <tr><td class="name">商品评论：</td><td class="munber"><a href="#">21s6</a>&nbsp;条</td></tr>

                    </tbody>
                </table>
            </div>
            <div class="Order_Statistics">
                <div class="title_name">骑手信息</div>
                <table class="table table-bordered">
                    <tbody>
                    <tr><td class="name">待审核认证：</td><td class="munber"><a href="#">3240</a>&nbsp;人</td></tr>
                    <tr><td class="name">已认证人数：</td><td class="munber"><a href="#">1130</a>&nbsp;人</td></tr>
                    </tbody>
                </table>
            </div>
            <!--<div class="t_Record">
              <div id="main" style="height:300px; overflow:hidden; width:100%; overflow:auto" ></div>
             </div> -->
            <div class="news_style">
                <div class="title_name">客户信息</div>
                <ul class="list">
                    <li><i class="icon-bell red"></i><a href="#">后台系统找那个是开通了。</a></li>
                    <li><i class="icon-bell red"></i><a href="#">6月共处理订单3451比，作废为...</a></li>
                    <li><i class="icon-bell red"></i><a href="#">后台系统找那个是开通了。</a></li>
                    <li><i class="icon-bell red"></i><a href="#">后台系统找那个是开通了。</a></li>
                    <li><i class="icon-bell red"></i><a href="#">后台系统找那个是开通了。</a></li>
                </ul>
            </div>
        </div>
        <!--记录-->
        <div class="clearfix">
            <div class="home_btn">
                <div>
                    <a href="picture-add.html"  title="添加商品" class="btn  btn-info btn-sm no-radius">
                        <i class="bigger-200"><img src="images/icon-addp.png" /></i>
                        <h5 class="margin-top">添加商品</h5>
                    </a>
                    <a href="Category_Manage.html"  title="产品分类" class="btn  btn-primary btn-sm no-radius">
                        <i class="bigger-200"><img src="images/icon-cpgl.png" /></i>
                        <h5 class="margin-top">产品分类</h5>
                    </a>
                    <a href="admin_info.html"  title="个人信息" class="btn  btn-success btn-sm no-radius">
                        <i class="bigger-200"><img src="images/icon-grxx.png" /></i>
                        <h5 class="margin-top">个人信息</h5>
                    </a>
                    <a href="Systems.html"  title="系统设置" class="btn  btn-info btn-sm no-radius">
                        <i class="bigger-200"><img src="images/xtsz.png" /></i>
                        <h5 class="margin-top">系统设置</h5>
                    </a>
                    <a href="Order_handling.html"  title="商品订单" class="btn  btn-purple btn-sm no-radius">
                        <i class="bigger-200"><img src="images/icon-gwcc.png" /></i>
                        <h5 class="margin-top">商品订单</h5>
                    </a>
                    <a href="picture-add.html"  title="添加广告" class="btn  btn-pink btn-sm no-radius">
                        <i class="bigger-200"><img src="images/icon-ad.png" /></i>
                        <h5 class="margin-top">添加广告</h5>
                    </a>
                    <a href="article_add.html"  title="添加文章" class="btn  btn-info btn-sm no-radius">
                        <i class="bigger-200"><img src="images/icon-addwz.png" /></i>
                        <h5 class="margin-top">添加文章</h5>
                    </a>
                </div>
            </div>

        </div>

    </div>
@stop
@section('js')
    <script type="text/javascript">
        //面包屑返回值
        var index = parent.layer.getFrameIndex(window.name);
        parent.layer.iframeAuto(index);
        $('.no-radius').on('click', function(){
            var cname = $(this).attr("title");
            var chref = $(this).attr("href");
            var cnames = parent.$('.Current_page').html();
            var herf = parent.$("#iframe").attr("src");
            parent.$('#parentIframe').html(cname);
            parent.$('#iframe').attr("src",chref).ready();;
            parent.$('#parentIframe').css("display","inline-block");
            parent.$('.Current_page').attr({"name":herf,"href":"javascript:void(0)"}).css({"color":"#4c8fbd","cursor":"pointer"});
            //parent.$('.Current_page').html("<a href='javascript:void(0)' name="+herf+" class='iframeurl'>" + cnames + "</a>");
            parent.layer.close(index);

        });
        $(document).ready(function(){

            $(".t_Record").width($(window).width()-640);
            //当文档窗口发生改变时 触发
            $(window).resize(function(){
                $(".t_Record").width($(window).width()-640);
            });
        });

    </script>
@stop





